import {WeaTools} from 'ecCom'


//获取流程回收站的树信息，高级查询条件，树节点数目和显示type
export const getRecycleRequestList = params => {
    return WeaTools.callApi('/api/workflow/delete/getList', 'POST', params);
}
//回收站流程恢复
export const getRecycleReStore = (selectRowKeys) => {
    let reqids = "";
    selectRowKeys.map(v=>{
        reqids += v +",";
    })
    reqids = reqids.substring(0,reqids.length-1);
    let params={
        requestid : reqids,
		actiontype : "restore",
		viewScope : "delete"
    }
    return WeaTools.callApi('/api/workflow/delete/getList', 'POST', params);
}
